using Godot;
using System;
using Content;
using KludgeBox;
using KludgeBox.Net;
using VectorSurvivors.GameWorld;
using VectorSurvivors.Multiplayer;

namespace VectorSurvivors;

public partial class MainMenu : CanvasLayer
{
	[Export] [NotNull] public Button GameStartButton { get; set; }
	
	public override void _Ready()
	{
		NotNullChecker.CheckProperties(this);
		GameStartButton.Pressed += OnGameStart;
		Audio2D.PlayMusic(Music.MainBgm);
	}

	private void OnGameStart()
	{
		Audio2D.StopMusic(2);
		Game.ChangeState(Game.Storages.States.GameWorldState, OnSceneChanged);
	}

	private void OnSceneChanged(Node node)
	{
	}
}
